@layout("/common/_container.html",{css:["/assets/common/css/form.css?v=2"],js:["/assets/modular/course/courseInfo/courseInfo_add.js?v=1.1"]}){
<div>
<form id="courseInfoForm" lay-filter="courseInfoForm" class="layui-form model-form">
	<div class="layui-fluid">
		<div class="layui-card">
			<div class="layui-card-header">基本信息</div>
			<div class="layui-card-body">
				<input name="courseId" type="hidden"/>
				<div class="layui-form-item layui-row">
					<div class="layui-inline layui-col-md4">
						<label class="layui-form-label">课程名称<span style="color: red;">*</span></label>
						<div class="layui-input-block">
							<input name="courseName" placeholder="请输入课程名称" type="text" class="layui-input" lay-verify="required|namelength" required/>
							<span class="layui-tips">(80个字符或者40个中文字)</span>
						</div>

					</div>
					<div class="layui-inline layui-col-md4">
						<label class="layui-form-label">课程链接<span style="color: red;">*</span></label>
						<div class="layui-input-block">
							<input name="courseUrl" placeholder="请输入课程链接" type="text" class="layui-input" lay-verify="required|url|urllength" required/>
							<span class="layui-tips">(100个字符,以(http://或https://)开头)</span>
						</div>
					</div>

					<div class="layui-inline layui-col-md4" id="courseTimeModel">
						<label class="layui-form-label">课程时间<span style="color: red;">*</span></label>
						<div class="layui-input-block">
							<input id="courseTime" name="courseTime" placeholder="请输入课程开始时间" type="text" class="layui-input date-icon" lay-verify="required" required />
						</div>
					</div>
					<div class="layui-inline layui-col-md4">
						<label class="layui-form-label">课程地址<span style="color: red;">*</span></label>
						<div class="layui-input-block">
							<input name="courseAddress" placeholder="请输入课程举办地" type="text" class="layui-input" lay-verify="required|addresslength"  required/>
							<span class="layui-tips">(50个字符或者25个中文字)</span>
						</div>
					</div>

					<div class="layui-inline layui-col-md4">
						<label class="layui-form-label">通知类型<span style="color: red;">*</span></label>
						<div class="layui-input-block">
							<select  id="noticeType" name="noticeType" lay-filter="noticeType">
								<option value="MAN_NOTICE">主动通知</option>
								<!--<option value="SYS_NOTICE">系统定时通知</option>-->
							</select>
						</div>
					</div>
					<div class="layui-inline layui-col-md4" id="noticeTimeModel" style="display: none">
						<label class="layui-form-label">通知时间<span style="color: red;">*</span></label>
						<div class="layui-input-block">
							<input id="noticeTime" name="noticeTime" placeholder="请输入通知时间" type="text" class="layui-input date-icon" lay-verify="noticeTimeReq" />
						</div>
					</div>
					<div class="layui-inline layui-col-md12">
						<label class="layui-form-label">备注<span style="color: red;">*</span></label>
						<div class="layui-input-block">
							<textarea name="courseRemark" placeholder="请输入备注信息" type="text/plain" class="layui-input" lay-verify="required|remarklength" required  style="height:100px" ></textarea>
							<span class="layui-textarea-tips">(500个字符或者250个中文字)</span>
						</div>
					</div>

				</div>
			</div>
        </div>

		<div class="layui-card">
			<div class="layui-card-header">附属信息</div>
			<div class="layui-card-body">
				<div class="layui-form-item layui-row">
					<div class="layui-inline layui-col-md4">
						<label class="layui-form-label">课程通知次数<span style="color: red;">*</span></label>
						<div class="layui-input-block">
							<input value="0" name="courseNums" placeholder="请输入课程通知次数" type="text" class="layui-input layui-disabled"  lay-verify="required|number" required disabled/>
						</div>
					</div>
					<div class="layui-inline layui-col-md4">
						<label class="layui-form-label">创建者<span style="color: red;">*</span></label>
						<div class="layui-input-block">
							<input value="${shiro.getUser().name}" name="createUserName" placeholder="请输入创建者id" type="text" class="layui-input layui-disabled" disabled/>
						</div>
					</div>
					<div class="layui-inline layui-col-md4">
						<label class="layui-form-label">创建时间<span style="color: red;">*</span></label>
						<div class="layui-input-block">
							<input id="createTime"  name="createTime" placeholder="请输入创建时间" type="text"  class="layui-input layui-disabled" disabled/>
						</div>
					</div>
					<div class="layui-inline layui-col-md4">
						<label class="layui-form-label">课程状态<span style="color: red;">*</span></label>
						<div class="layui-input-block">
							<select name="status" lay-filter="noticeStatus">
								<option value="ENABLE">启用</option>
								<option value="DISABLE">禁用</option>
							</select>
						</div>
					</div>
					<div class="layui-inline layui-col-md4">
						<label class="layui-form-label">修改者<span style="color: red;">*</span></label>
						<div class="layui-input-block">
							<input value="${shiro.getUser().name}" name="updateUserName" placeholder="请输入修改者id" type="text"  class="layui-input layui-disabled" disabled/>
						</div>
					</div>
					<div class="layui-inline layui-col-md4">
						<label class="layui-form-label">修改时间<span style="color: red;">*</span></label>
						<div class="layui-input-block">
							<input id="updateTime" name="updateTime" placeholder="请输入修改时间" type="text"  class="layui-input layui-disabled" disabled/>
						</div>
					</div>
				</div>
			</div>
		</div>
    </div>
	<div class="form-group-bottom text-right">
		<!--  <button class="layui-btn layui-btn-primary" type="button" ew-event="closeDialog">取消</button> -->
		<button class="layui-btn" lay-filter="btnSubmit" lay-submit>保存</button>
		<button class="layui-btn layui-btn-primary" type="button" ew-event="closeDialog" id="backupPage">返回</button>
	</div>
</form>
</div>
@}
